﻿<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>API</title>
    <link href="../bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <script src="../bootstrap/js/jquery.min.js"></script>
    <script src="../bootstrap/js/bootstrap.min.js"></script>
    <!--[if lt IE 9]>
      <script src="bootstrap/js/html5shiv.min.js"></script>
      <script src="bootstrap/js/respond.min.js"></script>
    <![endif]-->
    <script type="text/javascript">

        $(function () {
            var columns = [{ name: "名称", field: "name" }, { name: "访问密码", field: "accessKey" }, { name: "内网地址", field: "localAddress" }];
            var url = "http://localhost:8000/Device/Query";
            $("#tab").datagrid({ columns: columns }).loadData(url,"post");
        })

    </script>
</head>
<body>
    <nav class="navbar navbar-default">
        <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">FitIot</a>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <li><a href="device.html">设备管理 <span class="sr-only">(current)</span></a></li>
                    <li class="active"><a href="variable.html">变量管理</a></li>
                    <li><a href="trigger.html">触发器管理</a></li>
                </ul>
            </div>
        </div>
    </nav>
    <table id="tab" class="table table-bordered table-hover"></table>
</body>
</html>